package cn.edu.guet.service.collectpost.impl;

import cn.edu.guet.bean.collectpostbean.collectpost;
;
import cn.edu.guet.mapper.collectpost.collectpostMapper;
import cn.edu.guet.service.collectpost.collectpostseritf;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
//收藏实现类
public class collectpostserimpl implements collectpostseritf {
    @Autowired
    private collectpostMapper collectpostMapper;
    //显示收藏贴子
    @Override
    public List<collectpost> getSCTZ(collectpost collectpost) {
        return collectpostMapper.getshowcollectpost(collectpost);
    }
    //删除收藏贴子
    @Override
    public void deleteSCTZ(String userid,String pid) {
        collectpostMapper.deletecollectpost(userid,pid);


    }

    @Override
    public int getSCTZCount(String userid) {
        return collectpostMapper.getCollectcount(userid);

    }
}
